package com.chen.pfm.slice;

import com.chen.pfm.ResourceTable;
import com.chen.pfm.entity.Account;

import com.chen.pfm.entity.ReportForms;
import com.chen.pfm.utils.*;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.ability.DataAbilityRemoteException;
import ohos.aafwk.content.Intent;
import ohos.agp.colors.RgbColor;
import ohos.agp.components.*;

import ohos.agp.components.element.ShapeElement;
import ohos.agp.utils.LayoutAlignment;
import ohos.agp.window.dialog.CommonDialog;
import ohos.app.AbilityContext;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

import java.util.Arrays;
import java.util.List;

import static ohos.agp.components.ComponentContainer.LayoutConfig.MATCH_CONTENT;
import static ohos.agp.components.ComponentContainer.LayoutConfig.MATCH_PARENT;


public class TestSlice extends AbilitySlice {
    static final HiLogLabel hiLogLabel = new HiLogLabel(HiLog.LOG_APP, 0x2022001, "TestSlice");
    List<Account> accounts = null;
    Text text;
    int selectYearIndex;
    int selectMonthIndex;


    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_test);


        Button query = (Button) findComponentById(ResourceTable.Id_test_query);
        text = (Text) findComponentById(ResourceTable.Id_test_log_text);


        query.setClickedListener(component -> {

        });
        Button insert = (Button) findComponentById(ResourceTable.Id_test_insert);
        insert.setClickedListener(component -> {

        });
        Button update = (Button) findComponentById(ResourceTable.Id_test_update);
        update.setClickedListener(component -> {



        });
        Button delete = (Button) findComponentById(ResourceTable.Id_test_delete);
        delete.setClickedListener(component -> {

        });

    }


}
